import request from '@/utils/request'

// 查询物资报警详情列表
export function listElecWarningDetail(query) {
  return request({
    url: '/elec/elecWarningDetail/list',
    method: 'get',
    params: query
  })
}

// 查询物资报警详情详细
export function getElecWarningDetail(warningDetailId) {
  return request({
    url: '/elec/elecWarningDetail/' + warningDetailId,
    method: 'get'
  })
}

// 新增物资报警详情
export function addElecWarningDetail(data) {
  return request({
    url: '/elec/elecWarningDetail',
    method: 'post',
    data: data
  })
}

// 修改物资报警详情
export function updateElecWarningDetail(data) {
  return request({
    url: '/elec/elecWarningDetail',
    method: 'put',
    data: data
  })
}

// 删除物资报警详情
export function delElecWarningDetail(warningDetailId) {
  return request({
    url: '/elec/elecWarningDetail/' + warningDetailId,
    method: 'delete'
  })
}
